
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<title>Digital Clock</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="docs.css">
</head>
<body>
<div class="container-fluid">
  <script src="menu.js"></script>
  <div class="content p-3">
    <div class="container-fluid">
      <h2>Digital Clock</h2>
      <hr>
      <canvas id="digital-clock" width="400" height="100"></canvas>

      <h5 class="mt-3">Html</h5>
  <pre><code><!-- Default view dimension 400 x 100 -->
<canvas id="digital-clock" width="400" height="100"></canvas></code></pre>

      <h5>JavaScript</h5>
<pre><code>/* Options */
var options = {
  // Digital number color.
  numberColor: '#17a2b9',
  // Background dash color.
  dashColor: '#E0E0E0',
  // Hour offset.
  hourOffset: 0
};

/* Constructor */
var digitalClock = new zeu.DigitalClock('digital-clock', options);</code></pre>

    <h4>More examples</h4>
    <p>
      Set hour offset +5 to reflect timezone change.
    </p>
    <canvas id="digital-clock-2" width="400" height="100"></canvas>
    </div>
  </div>
</div>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
<script src="docs.js"></script>
<script src="../dist/zeu.js"></script>
<script type="text/javascript">
/* Options */
var options = {
  numberColor: '#17a2b9',
  dashColor: '#E0E0E0',
  hourOffset: 0
};

/* Constructor */
var digitalClock = new zeu.DigitalClock('digital-clock', options);

var digitalClock2 = new zeu.DigitalClock('digital-clock-2', {
  numberColor: '#007bfb',
  dashColor: '#FFFFFF',
  hourOffset: 5
});

</script>
</body>
</html>

